<?php

/**
 * Description of main
 * 
 * @author <KTD SOFT>
 * @since Dec 24, 2012 - 12:38:21 AM
 */
$lang = isset($_GET['lang']) ? $_GET['lang'] : 'vi';

return array(
    'components' => array(
        'errorHandler' => array(
            // use 'site/error' action to display errors
            'errorAction' => 'quanly/default/error',
        ),
        'user'         => array(
            'allowAutoLogin' => true,
            // this is actually the default value
            'loginUrl'       => array("quanly/default/login/lang/$lang"),
        ),
    ),
    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params'     => require(dirname(__FILE__) . '/params.php'),
);


/**
 * End of main
 */
